<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="MySQL.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户信息</title>
</head>
<body>
	请输入用户信息
	<br>
	<%
		request.setCharacterEncoding("UTF-8");
		String userId = request.getParameter("userId");
		String sql = "select * from tempUser where user_id = '" + userId
				+ "'";
		String userName = "";
		String userDlm = "";
		String userTel = "";
		ResultSet rs = stmt.executeQuery(sql);

		if (rs.next()) {
			userName = rs.getString("user_name");
			userDlm = rs.getString("user_dlm");
			userTel = rs.getString("user_telephone");
		}
	%>
	<form name="fm">
		<input type="hidden" id="userId" name="userId" value="<%=userId%>">
		<table width="700px">
			<tr>
				<td width="30%">姓名：</td>
				<td width="70%"><input type="text" name="userName"
					id="userName" value="<%=userName%>"></td>
			</tr>
			<tr>
				<td>登录名：</td>
				<td><input type="text" name="userDlm" id="userDlm"
					value="<%=userDlm%>"></td>
			</tr>
			<tr>
				<td>电话：</td>
				<td><input type="text" name="telephone" id="telephone"
					value="<%=userTel%>"></td>
			</tr>
		</table>
		<input type="button" name="btn1" value="保存" onClick="submitCheck()">
	</form>
</body>
</html>

<script>
	function submitCheck() {
		document.fm.method = "post";
		document.fm.action = "d2018.3.27_userModify_do.jsp";
		document.fm.submit();
	}
</script>